package com.railway.field.service;

import com.railway.field.dao.UserDao;
import com.railway.field.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UserService implements UserDao {
    @Autowired
    private UserDao userDao;

    //增加用户
    @Override
    public int InsertUser(Map map) {
        return userDao.InsertUser(map);
    }

    //根据username查询用户信息
    @Override
    public User SelectUser(Map map) {
        return userDao.SelectUser(map);
    }
}
